package com.ng.desktop.expansionsa.view.cliente;

import javax.swing.JOptionPane;

import com.ng.desktop.expansionsa.model.Cliente;
import com.ng.desktop.expansionsa.persistence.ClientePersistence;
import com.ng.framework.view.desktop.NGEntitySelectorField;

public class ClienteSelectorField extends NGEntitySelectorField<Cliente, ClientePersistence> {

	private static final long serialVersionUID = 9067913903286054349L;

	@Override
	public void select() {

		if (this.ngEntitySelectorDialog == null) {
			this.ngEntitySelectorDialog = new ClienteSelectorDialog(JOptionPane.getFrameForComponent(this), this);
		}

		ngEntitySelectorDialog.setLocationRelativeTo(this);
		ngEntitySelectorDialog.setVisible(true);
		ngEntitySelectorDialog.toFront();

	}

	@Override
	public void edit() {
	}

}
